%-----------------------------------------------------主文档 格式定义---------------------------------
\addtolength{\headsep}{-0.1cm}        %页眉位置
%\addtolength{\footskip}{0.4cm}       %页脚位置
%--------中文字体
\setCJKmainfont[BoldFont={FZHei-B01},ItalicFont={FZKai-Z03}]{FZLanTingSong}	% 兰亭宋体和方正楷书
\setCJKsansfont{FZHei-B01}	    % 方正黑体
\setCJKmonofont{FZFangSong-Z02}	    % 方正仿宋

%\setmainfont{Times New Roman}	    % 缺省字体
\setCJKfamilyfont{song}{FZLanTingSong}		%宋体
\setCJKfamilyfont{hei}{FZHei-B01} 		%黑体
\setCJKfamilyfont{kai}{FZKai-Z03}		%楷体
\setCJKfamilyfont{fs}{FZFangSong-Z02}		%仿宋
\setCJKfamilyfont{guli}{FZGuLi-S12T}		%古隶
\setCJKfamilyfont{xbsong}{FZXiaoBiaoSong-B05}	%小标宋

\newCJKfontfamily\song{FZLanTingSong}
\newCJKfontfamily\hei{FZHei-B01}
\newCJKfontfamily\kai{FZKai-Z03}
\newCJKfontfamily\fs{FZFangSong-Z02}
\newCJKfontfamily\guli{FZGuLi-S12T}
\newCJKfontfamily\xbsong{FZXiaoBiaoSong-B05}
%-----------------------------------------------------------定义颜色---------------
\definecolor{blueblack}{cmyk}{0,0,0,0.35}%浅黑
\definecolor{darkblue}{cmyk}{1,0,0,0}%纯蓝
\definecolor{lightblue}{cmyk}{0.15,0,0,0}%浅蓝
\definecolor{mblue}{cmyk}{1,0.5,0,0.6}%浅蓝
%--------------------------------------------------------设定标题颜色--------------
\CTEXsetup[format+={\color{darkblue}}]{chapter}
\CTEXsetup[format+={\color{darkblue}}]{section}
\CTEXsetup[format+={\color{darkblue}}]{subsection}
%------------------------------------------------定义页眉下单隔线----------------
\newcommand{\makeheadrule}{\makebox[0pt][l]{\color{mblue}\rule[.7\baselineskip]{\headwidth}{0.3pt}}\vskip-.8\baselineskip}
%-----------------------------------------------定义页眉下双隔线----------------
\makeatletter
\renewcommand{\headrule}{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi\makeheadrule}}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\hei 第\chaptername 章\quad #1}{}}    %去掉章标题中的数字
\renewcommand{\sectionmark}[1]{\markright{\kai \thesection\quad #1}{}}    %去掉节标题中的点
\fancyhf{} %清空页眉
\fancyhead[RO]{\kai{\footnotesize\color{mblue}\thepage}}         % 奇数页码显示左边
\fancyhead[LE]{\kai{\footnotesize\color{mblue}\thepage}}         % 偶数页码显示右边
\fancyhead[CO]{\song\footnotesize\color{mblue}\rightmark} % 奇数页码中间显示节标题
\fancyhead[CE]{\song\footnotesize\color{mblue}\leftmark}  % 偶数页码中间显示章标题
%---------------------------------------------------------------------------------------------
\titleformat{\part}{\centering\huge\hei}{第\partname 部分}{20pt}{\huge}
\titleformat{\chapter}{\centering\LARGE\hei}{第\chaptername 章}{18pt}{\LARGE}
\titleformat{\section}{\large\hei}{\thesection}{10pt}{\large}